package router

import (
	"github.com/gin-gonic/gin"
	"choujiang/box_server/handler"
)

func RegisterCoupon(router *gin.RouterGroup) {
	r := router.Group("/coupon")
	r.POST("", handler.CreateCoupon)
	r.POST("/join", handler.JoinCoupon)
	r.GET("/detail", handler.CouponDetail)
	r.GET("/my_coupon", handler.MyCouponLog)
	r.GET("/my_coupon_detail", handler.MyCouponDetail)
	r.GET("/member", handler.CouponMember)
	r.POST("/refresh_form", handler.RefreshForm)
	r.GET("/free_num", handler.FreeNumHandler)
	r.GET("/free", handler.FreeHandler)
}
